triggers: Fix comparison function
authorColin Walters <walters@verbum.org>
Mon, 20 Feb 2012 02:10:59 +0000 (21:10 -0500)
committerColin Walters <walters@verbum.org>
Mon, 20 Feb 2012 02:10:59 +0000 (21:10 -0500)
src/triggers/ostree-run-triggers.c

index 7145cb6aadc7782d2a8b10976d4504373f060558..e533915f3994acf2cb859292bfc9fadf1bd72a07 100644 (file)
@@ -132,8 +132,8 @@ static int
 compare_files_by_basename (gconstpointer  ap,
                            gconstpointer  bp)
 {
-  GFile *a = (GFile*)ap;
-  GFile *b = (GFile*)ap;
+  GFile *a = *(GFile**)ap;
+  GFile *b = *(GFile**)ap;
   char *name_a, *name_b;
   int c;